//
//  UUCityLocationHeaderView.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 21/03/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UUCityModel.h"

typedef NS_ENUM(NSUInteger, UUCityLocationHeaderViewStatus) {
    UUCityLocationHeaderViewStatusLocating,
    UUCityLocationHeaderViewStatusFailed,
    UUCityLocationHeaderViewStatusUnknown,
    UUCityLocationHeaderViewStatusSuccess,
};

@interface UUCityLocationHeaderView : UIView

@property (nonatomic, strong) UUCityModel *city;
@property (nonatomic, assign) UUCityLocationHeaderViewStatus status;

@property (nonatomic, copy) void (^refreshButtonClicked)(void);
@property (nonatomic, copy) void (^cityDidSelect)(UUCityModel *city);

@end
